package com.cxrj.zhsq.redCommunity.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cxrj.zhsq.redCommunity.entity.VolunteerRecruit;

public interface VolunteerRecruitService {
	
	/**
	 * 查询招募信息集合
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> selectVolunteerRecruitList(HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 根据招募id查询详细信息
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> selectVolunteerRecruitById(String vrId, String userId, HttpServletRequest request);
	
	/**
	 * 新增招募信息
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> insertVolunteerRecruit(VolunteerRecruit modle,HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 修改招募信息
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> updateVolunteerRecruit(VolunteerRecruit modle,HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 获取志愿者招募报名信息
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> selectVolunteerEnroll(HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 查询招募信息集合(接口)
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> selectVolunteerRecrui(String dataIndex, String pageCount);
	
	/**
	 * 查询我的招募信息集合(接口)
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> selectVolunteerRecruiByMy(String userId, String status, String dataIndex, String pageCount);
	
	/**
	 * 志愿者报名
	 * 
	 * @param id
	 * @param userId
	 * @return
	 */
	Map<String, Object> insertVolunteerEnroll(String id, String userId);
	
	/**
	 * 志愿者取消报名
	 * 
	 * @param id
	 * @param userId
	 * @return
	 */
	Map<String, Object> updateVolunteerEnroll(String id, String userId);
	
	/**
	 * 查询风采信息集合(接口)
	 * @param request
	 * @param response
	 * @return
	 */
	Map<String, Object> selectVolunteerMien(String name, String dataIndex, String pageCount);
}
